package com.zx.erp.purchase.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zx.erp.purchase.bean.CBrand;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zx.erp.sys.bean.Module;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 胡展旺
 * @since 2021-11-17
 */
public interface CBrandMapper extends BaseMapper<CBrand> {

    //分页查询所有品牌
    Page<CBrand> getBrandListByCondition(IPage<CBrand> page, CBrand cBrand);

    //查询单个品牌
    public CBrand getOneBrandByCondition(Integer brandId);

    //添加品牌
    public boolean brandAdd(CBrand brand);

    //修改品牌状态
    public boolean brandUpdate(CBrand brand);

    List<CBrand> selectAll(CBrand cBrand);
    CBrand selectByPrimaryKey(Integer brandId);

}
